Hi Mark,
Looks like others have beat me too it while I was typing but yes, it does matter where along the beam the mass is placed. The closer to one end, the greater the mass supported by the end support at that end of the beam.
For example, assume a beam that is 4m long, with a 100kg mass 1m from the end. You have two unknowns, so need two equations to solve.
The first equation comes from the sum of the moments about each end support. Moment is force (mass x gravity) x distance
So, F1 - 3F2 (the minus is because moments are opposite directions)
The second equation is the sum of the forces must be zero
So, F1 + F2 - (100x9.81) = 0
Which gives F1 + F2 = 981 or F2 = 981 - F1
Solving for F1 and F2 we get:
F1 - 3(981-F1)=0
F1-2943+3F1=0
4F1=2943
F1=735.75N
Thus mass 1 is 75kg
Mass 2 is therefore 25kg.
Hope that makes sense and is not too complicated. It would be easier to explain with a diagram.
P.S I am a mechanical engineer so have tried to use laymans terms if possible.