A trader goes to Ghana for y days with Y cedis. For the first x days, he spends X cedis per day. The amount he has to spend per day for the rest of his stay is
Worked solution (try it first)
In the first x days he spends X cedis a day, so Xx cedis in all.
He has Y−Xx cedis left for the remaining y−x days.