Hello, I need help for this question, it would be highly appreciated.

Bob the builder had twice as many screws as nails.

The total mass of the screws and nails was 1054 g.

The mass of the screws was 646 g more than the mass of the nails.

The mass of each screw was 13 g more than the mass of each nail.

A) What was the mass of the nails in grams?

B) How many Nails were there.

Source: PSLE

Source: PSLE