When Rami's family went gold panning, they found 690 milligrams of gold and gold was worth $42 per gram. What was the value of the gold they found?