SAS and R Problems

I have attached the txt file needed (Proj3_prob1). Can’t use sum,avg, etc. Must be done through matrix manipulation. For problem 2, also need to calculate the power for a and b as part of conclusion. Problem 3 cannot use the cor command for a-f but can use it if needed for g-j.