A quick way is to just make those global variables. But probably a safer way is to use something like messages. Light weight messages (LWMSG) are part of MQX and can be found in MQX_User_Guide.pdf and MQX_Reference_Manual.pdf in your MQX install directory. Basically if task B needs data from task A, task B will hit a blocking call in your code and sit there waiting till task A sends a message containing the data to be passed from task A to task B.
Sorry but I don't have any lwmsg example code handy or I'd post it. I think there are examples in the documentation and in the example projects that come with MQX.
MQX also has other things like semaphores and events that might work. It just depends on your situation.
Hope that helps,
Sean