system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How do scientists figure out how much planets & stars weigh?
gpt
Everything in the universe exerts a gravitational force on objects. This force is relative to the mass of the object which can be determined mathematically. By looking at the effects larger objects have on smaller ones, we are able to determine the approximate masses of planets and stars.