Denis bought 5 rulers at sh.(x+150) each and 3 pencils at sh.(2x-400).If he paid sh.3000 for every 3 rulers,find the value of x .

we know that each ruler costs x+150, so 3 cost

3(x+150) = 3000
I guess there must be a part (b) asking about the cost of pencils ...