There was an equal number of soft drinks and toys in a shop. After

36 soft drinks were sold, the ratio of toys to soft drinks became 3:1.
How many soft drinks and toys were there in total?

Soft Drinks # = x

Toys # = y

x = y

y/(x-36) = 3
y = 3(x-36)
y = 3x-108
*sub x for y using first equation*
y = 3y-108
108=2y
y=54

This means that there were 54 toys and 54 soft drinks in total.