• does not pass the test on Extra 2 condition

Question related to mission Treasures

 

Solution does not pass the test on Extra 2 condition:

{

"silver coin": {"price":10,"amount":100,"weight":10},

"ruby": {"price":1000,"amount":5,"weight":200},

"golden coin": {"price":100,"amount":100,"weight":10}},

1.8) == ["golden coin: 100","ruby: 4"]

4 * 200 = 800

100 * 100 = 1000


my solution:

["golden coin: 80","ruby: 5"]

5 * 200 = 1000

80 * 100 = 800


Which solution is correct?