Cube Numbers

Question 1:

3 3
27

Question 2:

5 3
125

Question 3:

1000 3
10

Question 4:

8 3
2