Julie and two friends babysat for 5 hours yesterday. They divided their total earnings equally. Julie spent $8 from her part of the money and had $11 left. What was the total amount the three friends earned?

x/3 - 8 = 11

x = 57