Well, based on the size of the sun and it's brightness you can deduce how much "fuel" is in it.
That fuel weighs a certain amount.
We can take the amount of fuel and think "if this small amount weighs X"
than "this large amount weighs X"

PS: I tried to make it simple for you to understand, sorry if I failed.