Residents are invited to take part in a community tree-planting initiative that will see 40 new trees planted across two green spaces.