The total number of goals scored in a hockey game was 23. Team B scored 5 more goals than team A. How many goals did each team score?

A + A+5 = 23

2A = 18
now finish it off