All the sides of the square are congruent by the markings. Therefore they all measure 5 and because all 4 sides are congruent it is a square. Because it is a square the corners are right angles and you can use the Pythagorean Theorem. a^2 +b^2 = c^2.
1 kilogram (kg) equals to 1000 grams (g). Since you have 6.42 kilograms, divide 6.42 kilograms to 1000 grams. Your final answer is 6420 grams in total.