(what belongs to another)=noun clause
amounts=be equal, be equivalent
what=quantity of presents, items, property having a value of possession; worth (adj) a value.
whatever=pronoun and adjective of What of it relevant to the question of relative clause that's worth a value=what.