(a)In S we have identity element e=1 for multiplication modulo 8 operation.
For Inverse(2) we have to find number x from set s such that (2x)mod8=1(e).
Now as you can see 2x will be of ther form 8x+1(then only remainder 1 possible).
8x+1 will always be odd number and any nymber multiplied by 2 will always be even. Therefore no such x exists. Inverse(2)=DNE.
Therefore not Group (We could also have used co prime logic in this group but i like this method).
(b)Moreover for 3 groups we need 1 in each group beacuse it is the identity element for the operation.
Therfore the groups are:-
{1,3} Inverse(3)=3
{1,5} Inverse(5)=5
{1,7} Inverse(7)=7
All 3 Structure follow closure,Aassociative,e=1, and inverse property.Therfore these 3 are groups and subset of s Therefore subgroups