An Analytical Method to Analysis of Foam Drainage Problem