## To calculate Pedro's current grade, we need to consider the weightage of each component. The labs are worth 20%, the tests are worth 20%, and the exams are worth 40%.

Let's break it down step by step.

1. Lab grades:

- Pedro has 8 lab grades: 90/100, 98/100, 90/100, 94/100, 90/100, 90/100, 95/100, 98/100.

- To find the average, add up all the grades and divide by the total number of grades: (90 + 98 + 90 + 94 + 90 + 90 + 95 + 98) / 8 = 735 / 8 = 91.875.

- Since the labs are worth 20%, we need to calculate 20% of the lab average: 91.875 * 0.20 = 18.375.

2. Test grades:

- Pedro has 12 test grades: 9/10, 6/10, 10/10, 10/10, 5/10, 7/10, 7/10, 7/10, 10/10, 10/10, 8/10, 10/10.

- To find the average, add up all the grades and divide by the total number of grades: (9 + 6 + 10 + 10 + 5 + 7 + 7 + 7 + 10 + 10 + 8 + 10) / 12 = 99 / 12 = 8.25.

- Since the tests are worth 20%, we need to calculate 20% of the test average: 8.25 * 0.20 = 1.65.

3. Exam grades:

- Pedro has 4 exam grades: 35/100, 20/100, 26/100, 34/100.

- To find the average, add up all the grades and divide by the total number of grades: (35 + 20 + 26 + 34) / 4 = 115 / 4 = 28.75.

- Since the exams are worth 40%, we need to calculate 40% of the exam average: 28.75 * 0.40 = 11.5.

Now, let's calculate Pedro's current grade:

- Add up the weighted averages of labs, tests, and exams: 18.375 + 1.65 + 11.5 = 31.525.

- Pedro's current grade is 31.525 out of 80.

To find Pedro's grade if he had a 90 on the final, we need to calculate the weighted average with the final exam score:

- Final exam is worth 20%. Since it's out of 100, we can directly use the score.

- Add up the weighted averages of labs, tests, exams, and the final exam: 31.525 (current average) + 90 * 0.20 = 31.525 + 18 = 49.525.

- Pedro's grade with a 90 on the final would be 49.525 out of 100.

Please note that this calculation is based on the given weights and scores.