Before he left for college out of state, Jason went to the post office and bought both $0.49 stamps and $0.34 postcards and spent $12.52. The number of stamps was 4 more than twice the number of postcards. How many of each aid he buy?

number of postcards ---- x

number of stamps ----- 2x+4

34x + 49(2x+4) = 1252

solve for x