Answer: The printer costs 310 and the computer costs 930.
Explanation:
p = printer
c = computer
p + c = 1240 <- their combined total is 1240
c = 3p <- a computer costs 3 times the amount of a printer
p + 3p = 1240 <- substitute c for 3p
4p = 1240
p = 310 <- cost of printer
c = 3*310 <- substitute into the 2nd equation
c = 930
930 + 310 = 1240 <- double check