I borrowed money from Joe. I spent 5.50 of it on lunch, and half of the rest on a present. To repay Joe, I borrowed 10.00 from Fred. If i started and ended with no money, how much did I borrow from Joe?

Let x = borrowed money.

x - 5.50 - .5(x-5.50) = 10

Solve for x.