To me, it is ambiguous.
Gdanning's comment is correct, that we often say 'if only' to mean "I wish we had". However the normal phrasing for that would be " If only we learned those". But it could certainly mean that, and therefore the meaning is "the world would be better if we learned those two things".
The other alternative is that 'only' means 'none other', and the suggestion is that we should only learn those two things, and not learn anything else. However, in context, that seems very strange (and frankly stupid, since we wouldn't learn very much).
As I said - it's ambiguous. It could be either. But does it really matter?