If the desired margin of error E is specified and the desired confidence level is specified, the required sample size to meet the requirements can be calculated by two methods:
Assuming your groups are independent (no repeated measurements of the same people or matched pairs), you would probably use an independent samples t test to compare the group means. For an independent samples t test, the sample size calculation is easily done in the free G*Power software that you can find online.