Benny and Nigel both received an allowance from their father. Benny initially received 30% of the money. He then gave Nigel $5, and was left with 1/3 as much money as Nigel. What was the total amount of money given to the two boys?

If there was x to start with,

b = 3/10 x
b-5 = 1/3 (7/10 x + 5)
x = $100
check:
Benny got $30
He gave $5 to Nigel, so then he had $25 and Nigel had $75