Answer:
10 hats and 30 scarves
Explanation:
Let h be the number of hats Kaelyn makes and s be the number of scarves she makes.
Kaelyn wants to make 3 times as many scarves as hats, so
s = 3h
Each hat uses 0.2 kilograms of yarn, then h hats use 0.2h kg of yarn.
Each scarf uses 0.1 kilograms of yarn, then s scarves use 0.1s kg of yarn.
Kaelyn wants to use 5 kilograms of yarn, thus
0.2h + 0.1s = 5
You get the system of two equations:

Substitute the first equation into the second
