A square measuring x cm in side length has a cm added to its length and b cm added to its width. The resulting rectangle has an area of x2 + 6x + 3 cm2. Find values of a and b.