Q: A party of boys purchased a boat and upon payment for the same discovered that if thay had numbered 3 more, they would have paid a dollar apiece less; but if they had numbered 2 less,they would have paid apiece more. How many boys were there, and what did the boat cost?

let x= number of boys and y = number of dollars each paid. let xy = represents the number of dollars the boat cost

i created these two sim. equations but i am wrong. This is due to my interpretation of the question. How do i interpret in probably to get the right equations

$x + 3 + y = xy $

$x-2 = x(y+1)$