A log or ln button is usually found on the calculator keypad. Generally, it depends on the calculator (graphic or not etc).
On your question,
A: For I=20*I0 you get L=10 log(20)
B: Find the ratio of the levels of sound. If you know how to perform log calculations you should be fine.