Phoebe drives one-third of the distance from A to B at x kilometers per hour, and she drives the other two-thirds of the distance at y kilometers per hour. Calculate the Phoebe's average rate of speed, in kilometers per hour and in terms of x and y for the entire trip.