A situation involves an Angular function with two HTTP GET requests, A and B. Request A returns data X while request B returns data Y, both of which are continuously changing in the backend. The goal is to display the real-time average of (X+Y)/2 using this function. How would you approach this scenario?