After losing 3 baseball cards, Peter gave half of his remaining cards to Bobby. If Peter gave Bobby 9 baseball cards, how many cards did Peter start with?

Linear equation:
1
2
(x - 3) = 9