Using Green's Function to convert a Boundary Value Problem to Fredholm's Integral Equation