Leo found a metal bar that containment 284 grams of copper. After some tests, he determined that the bar was 80% copper. What was the total weight of the metal bar in grams?