Temperature-dependent magnetization in a ferromagnetic bilayer consisting of two materials with different curie temperatures