Hi, Suzy!
I love these kinds of problems! They always remind me of the math game 24 where you are given 4 numbers and the objective is to use those 4 numbers (only once) and addition, subtraction, multiplication, and division to equal 24. Great game (at least for a math nerd)!
BUT back to the topic at hand.
To get the answer of two, you can try working backwards. Brainstorm some ways to get two normally (ie - 2*1 or 1+1) Getting a 2 with two 8s would be difficult, but you can get 1 with two 8s by dividing them. So,
1 + 1 becomes (8 ÷ 8) + (8 ÷ 8) = 2
Regarding the answer 5, I'm not sure you CAN get that answer by starting from four 8s. You can either have a starting pair of 8s that give you 0 (subtraction), 1 (division), 16 (addition), or 64 (multiplication). 0 doesn't get you anywhere - it just leaves you with trying to get 5 with two 8s instead of 4. 16, and 64 are both even numbers like 8, so if you add, subtract, or multiply by 8 you will get an even number. In this case, if you divide 16 or 64 by 8, you also end up with an even number. And when you start out by dividing two 8s to give you 1, I can't find a permutation that can give you 5 from a 1, 8, and 8.