Consider a flagpole with 10 spaces. There are 3 types of flags: Red flags occupy 1 space, blue and green flags occupy 2 spaces each. In how many ways can the 10 spaces of the flagpole can be covered with flags such that no spaces is empty.