You paid $600 for a new guitar. Your guitar cost $40 more than twice the cost of your friends guitar. How much did your friend's guitar cost? Please show work and explain why.