Hello,
The two boxes 34 listed are for the following options:
1- Foreign income tax paid on investment income
2- Foreign income tax paid on other income
If your income is a result of investments, you should use the first option mentioned above. For anything else, you should use the second option