tension, acceleration of a weight block

the weight of the block on the table is 468 N and that of the hanging block is 170 N. Ignore all frictional effects, and assuming the pulley to be massless.

Find the acceleration of the two blocks.

m/s^2

Find the tension in the cord.

N

i know the formula Fnet = ma

however they say the weight is 468 and 170, i know these could be added together but, if there the weight then whats the Fnet, or also if they were switched around.

need help please.

also the tension of the cord is the same throughout the system, i also know that.

=========================================