solving tc