Step 1 :Let's denote the number of hits Pedro got as P and the number of hits Ricky got as R.
Step 2 :From the problem, we know that P + R = 2669, which represents the total number of hits they got together.
Step 3 :We also know that P = R + 279, which means Pedro had 279 more hits than Ricky.
Step 4 :We can solve this system of equations to find the values of P and R.
Step 5 :Solving the system of equations gives us P = 1474 and R = 1195.
Step 6 :This means Pedro got \(\boxed{1474}\) hits and Ricky got \(\boxed{1195}\) hits.