I'm giving up on math.

Literal

I [topic-は] math [object-を] give-up [insistence-よ].

あきらめる ('to give up, resign oneself') takes を for the thing being abandoned. Sentence-final よ declares the speaker's decision with assertion.